import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'widgets/anchor_apply_form.dart';

class AnchorApplyScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black,
      body: SafeArea(
        child: Column(
          children: [
            // 头部
            Container(
              color: const Color(0xFF151313),
              padding: EdgeInsets.symmetric(vertical: 35.h),
              child: Row(
                children: [
                  GestureDetector(
                    onTap: () => Get.back(),
                    child: Padding(
                      padding: EdgeInsets.only(left: 30.w),
                      child: Icon(
                        Icons.arrow_back_ios,
                        color: Colors.white,
                        size: 48.sp,
                      ),
                    ),
                  ),
                  Expanded(
                    child: Center(
                      child: Text(
                        'TV anchor',
                        style: TextStyle(
                          color: Colors.white,
                          fontSize: 36.sp,
                          fontWeight: FontWeight.bold,
                        ),
                      ),
                    ),
                  ),
                  SizedBox(width: 78.w),
                ],
              ),
            ),
            // 条件说明
            Container(
              width: double.infinity,
              padding: EdgeInsets.all(30.w),
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                children: [
                  Text(
                    'The following conditions must be met in order to activate the anchor',
                    style: TextStyle(
                      color: Colors.white,
                      fontSize: 32.sp,
                      fontWeight: FontWeight.w500,
                    ),
                  ),
                  SizedBox(height: 30.h),
                  Text(
                    '1. Must create a video every day for 30 consecutive days',
                    style: TextStyle(
                      color: Colors.grey,
                      fontSize: 28.sp,
                    ),
                  ),
                  SizedBox(height: 20.h),
                  Text(
                    '2. The number of fans needs to reach 1000 people',
                    style: TextStyle(
                      color: Colors.grey,
                      fontSize: 28.sp,
                    ),
                  ),
                ],
              ),
            ),
            // 表单
            Expanded(
              child: AnchorApplyForm(),
            ),
          ],
        ),
      ),
    );
  }
}
